package cn.qyd.kaoshi;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

/**
 * @author 邱运铎
 * @date 2024-03-20 15:25
 */
public class Demo {
    public static void main(String[] args) {
        String str = "1000";
        int i = 1;
        System.out.println(Integer.toBinaryString(i));
        System.out.println(1 << 1);
        System.out.println(1 << 2);
        System.out.println(1 << 3);
        System.out.println(1 << 4);
        System.out.println(1 << 5);
        System.out.println(1 << 6);
        System.out.println(1 << 7);
        System.out.println(1 << 8);
        System.out.println(1 << 9);
        System.out.println(258 + 3);
        System.out.println(3 << 8);

        long num = 167773121L;
        System.out.println(num );

        ArrayList<int[]> arrayList = new ArrayList();
        arrayList.add(new int[]{6});
        arrayList.add(new int[]{4,5});
        arrayList.add(new int[]{1,2,3});
        System.out.println(arrayList);
        Collections.reverse(arrayList);
        System.out.println(arrayList);
        System.out.println(Arrays.toString(arrayList.toArray()));


    }
}
